//
//  MLNews.m
//  keJiNews
//
//  Created by 魔龙 on 16/4/12.
//  Copyright © 2016年 魔龙. All rights reserved.
//

#import "MLNews.h"
#import <objc/runtime.h>

@implementation MLNews
+ (instancetype)newsWithDict:(NSDictionary *)dict {
    MLNews *news = [[self alloc] init];
    
    [news setValuesForKeysWithDictionary:dict];
    
    return news;
}

- (void)setDocid:(NSString *)docid{
    _docid = docid.copy;
    self.fullURL = [NSString stringWithFormat:@"nc/article/%@/full.html",_docid];
}

@end
